
<template>
  <div class="big">

    <div class="content">
      <p>女装</p>
      <p>男装</p>
    </div>

    <Seatchtext :obj="arra" />
    <p>秋冬</p>
    <Seatchtext :obj="arrb" />
    <p>春夏</p>
    <Seatchtext :obj="arrc" />
    <p>户外/运动</p>
    <Seatchtext :obj="arrd" />
    <Return />
  </div>
</template>

<script>
import Return from "./return.vue";
import getlink from "../api/getapi.js";
import Seatchtext from "./seatchtext.vue";
export default {
  components: {
    Return,
    Seatchtext,
  },
  data() {
    return {
      arr: [],
    };
  },
  computed: {
    arra() {
      return this.arr.slice(0, 12);
    },
    arrb() {
      return this.arr.slice(12, 38);
    },
    arrc() {
      return this.arr.slice(38, 47);
    },
    arrd() {
      return this.arr.slice(47, 59);
    },
  },
  mounted() {
    getlink("/data/list").then((ok) => {
      this.arr = ok.data.closename;
    });
  },
};
</script>

<style scoped>
.big {
  width: 90%;
  margin: 0 auto;
}
.scarch {
  width: 90%;
  height: 0.3rem;
  margin: 0.2rem auto;
  background-color: #f7f7f7;
  padding: 0.05rem 0;
  position: sticky;
  top: 0;
}
.content {
  width: 100%;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
.content > p {
  width: 50%;
  margin-bottom: 0.1rem;
  color: black;
  font-size: 0.23rem;
  font-weight: 600;
}
p {
  width: 50%;
  margin-top: 0.2rem;
  margin-bottom: 0.2rem;
  color: black;
  font-size: 0.23rem;
  font-weight: 600;
}
</style>